package pc15;

public class J01Account {

	public static void main(String[] args) {
		//변수선언
		int aid = 0;
		double balance = 0, interestRate = 0;
		String dateCreated;
		double getMonthlyInterestRate;
		double withDraw, deposit;
		
		//시험값 대입
		aid = 1122; balance = 20000; interestRate = 4.5;
		withDraw = 2500;
		dateCreated = "2014-03-12";
		
		//잔액, 월간 이자율, 통장 개설날짜 처리
		balance -= withDraw;
		getMonthlyInterestRate = interestRate / 12;

		System.out.println("계좌번호: " + aid);
		System.out.println("1차인출잔액: " + balance);
		System.out.println(dateCreated);
		System.out.println(getMonthlyInterestRate);

		//추가 인출
		withDraw = 3000;
		
		//추가 계산
		balance -= withDraw;
		
		//출력
		System.out.println("2차인출잔액: " + balance);
		System.out.println(dateCreated);
		System.out.println(getMonthlyInterestRate);
	}
}
